
package edu.weber.bookstore.controllers;

import javax.servlet.http.HttpServletRequest;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

/**
 * 
 * 
 */
public class AppController extends MultiActionController
{
	/**
	 * Returns a string of length 32 characters for the current request's session hash.
	 * 
	 * @param request a HttpServletRequest object for the requested session id.
	 * @return Returns a 32 length string of the user's session hash.
	 */
	public static String getSessionId(HttpServletRequest request)
	{
		return request.getSession().getId();
	}
}
